-- GENERATED SPELL FOR [Shadowfang Whitescalp] --


function spell0_3851(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_3851', 0, 1)
end

function Sorts_3851(pUnit, Event)
local choix_sorts_3851 = math.random(0, 0)
if choix_sorts_3851 == 0 then
pUnit:RegisterEvent('spell0_3851', 1, 1)
end
end

function mob3851_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3851', math.random(1500, 3000), 1)
end

function mob3851_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3851_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3851_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3851, 1, 'mob3851_Action')
RegisterUnitEvent(3851, 2, 'mob3851_Leave')
RegisterUnitEvent(3851, 3, 'mob3851_Kill')
RegisterUnitEvent(3851, 4, 'mob3851_Die')
